import com.mesa.android.avatalk.base.BaseVMRepositoryimport com.google.gson.JsonArray/** * Author: [author] * Date: [date] * Description: */class [name]Repository() : BaseVMRepository() {   /**    * [api_comment]    */   fun [method_name](           [rep_params]           viewModel: AvatalkBaseViewModel,           listModel: UnPeekLiveData<ListModel<Any>>   ) {       val params = HashMap<String, Any>()[map_params]       request(           viewModel = viewModel,           block = {               RetrofitClient.getService<[name]Service>().[method_name](params)           }, success = {               listModel.postValue(ListModel(isSuccess = true, showEnd = false, response = it))           }, error = {               listModel.postValue(ListModel(isSuccess = false, showError = it.errorMsg))           })   }}